#include "Queue.h"

void Test()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	while (!QueueEmpty(&q))
	{
		QDataType ret1 = QueueFront(&q);
		printf("head=%d ", ret1);
		QDataType ret2 = QueueBack(&q);
		printf("tail=%d ", ret2);
		int num = QueueSize(&q);
		printf("size=%d ", num);
		QueuePop(&q);
		printf("\n");
	}
	QueueDestroy(&q);
}

int main()
{
	Test();
	return 0;
}